package com.healthy.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.healthy.education.mapper.VenuesMapper;
import com.healthy.education.domain.Venues;
import com.healthy.education.service.IVenuesService;

/**
 * 活动场地Service业务层处理
 * 
 * @author 束伟
 * @date 2024-03-29
 */
@Service
public class VenuesServiceImpl implements IVenuesService 
{
    @Autowired
    private VenuesMapper venuesMapper;

    /**
     * 查询活动场地
     * 
     * @param venueId 活动场地主键
     * @return 活动场地
     */
    @Override
    public Venues selectVenuesByVenueId(Long venueId)
    {
        return venuesMapper.selectVenuesByVenueId(venueId);
    }

    /**
     * 查询活动场地列表
     * 
     * @param venues 活动场地
     * @return 活动场地
     */
    @Override
    public List<Venues> selectVenuesList(Venues venues)
    {
        return venuesMapper.selectVenuesList(venues);
    }

    /**
     * 新增活动场地
     * 
     * @param venues 活动场地
     * @return 结果
     */
    @Override
    public int insertVenues(Venues venues)
    {
        return venuesMapper.insertVenues(venues);
    }

    /**
     * 修改活动场地
     * 
     * @param venues 活动场地
     * @return 结果
     */
    @Override
    public int updateVenues(Venues venues)
    {
        return venuesMapper.updateVenues(venues);
    }

    /**
     * 批量删除活动场地
     * 
     * @param venueIds 需要删除的活动场地主键
     * @return 结果
     */
    @Override
    public int deleteVenuesByVenueIds(Long[] venueIds)
    {
        return venuesMapper.deleteVenuesByVenueIds(venueIds);
    }

    /**
     * 删除活动场地信息
     * 
     * @param venueId 活动场地主键
     * @return 结果
     */
    @Override
    public int deleteVenuesByVenueId(Long venueId)
    {
        return venuesMapper.deleteVenuesByVenueId(venueId);
    }
}
